import {
	request,
	baseUrlShop
} from "../../request.js"

/**
 * 1，创建订单
 */
export function createOrder(orderData) {
	return request({
		url: baseUrlShop + '/shopOrder/createOrder',
		method: 'POST',
		data: {
			userId: uni.getStorageSync('userId'),
			price: orderData.price,
			address: orderData.address,
			detail: orderData.detail
		}
	})
}
